package cn.jtfadmin.cms;

import cn.jtfadmin.base.lang.config.module.DefaultModuleInfoDTO;
import cn.jtfadmin.base.lang.config.module.ModuleInfo;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

@EntityScan(basePackages = "cn.jtfadmin.cms")
@EnableJpaRepositories()
@ComponentScan(basePackages = "cn.jtfadmin.cms")
@Configuration
public class CmsAutoConfigure  {

    @Bean
    public ModuleInfo cmsModuleInfo(){
        return new DefaultModuleInfoDTO("cms", "网站模块", "网站信息", getClass().getPackage().getName());
    }
}
